/* 砍价页面 */
.container {
    width: 10rem;
    min-width: 320px;
    height: 100%;
    background-color: #fff;
    margin: 0 auto;
    box-sizing: border-box;
    background-image: linear-gradient(rgb(241, 62, 17), rgb(254, 167, 44));
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.content {
    width: 9rem;
    min-width: 288px;
    margin: 100px auto;
    background: #fff;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px;
}

.product {
    background: cornsilk;
    display: flex;
    border-radius: 5px;
}

.product .cover {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 5px;
}

.product .cover img {
    width: 100%;
    vertical-align: middle;
    border-radius: 5px;
   
}

.product .info {
    flex: 1;
    padding-left: 10px;
    color: rgb(185, 54, 11);
    text-align: left;
}

.info span {
    background: darkgoldenrod;
    color: #fff;
    display: inline-block;
    padding: 5px auto;
    margin-top: 10px;
}

.info h3 {
    margin-top: 10px;
}

.kj-tip {
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
}

.progress {
    width: 8rem;
    min-width: 256px;
    height: 10px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
}

.progress .value {
    display: block;
    width: 50%;
    height: 100%;
    background-color: rgb(255, 221, 0);
    border-radius: 10px;
}


.youhui {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.youhui img {
    height: 30px;
    vertical-align: middle;
}

.kyd-btn {
    border: none;
    width: 100%;
    height: 40px;
    color: rgb(229, 39, 39);
    font-size: 18px;
    font-weight: 800;
    background-color: rgb(255, 221, 0);
    border-radius: 40px;
    box-shadow: 0 5px rgb(240, 190, 0);
    margin: 20px auto;
}

.mask {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    left: 0px;
    top: 0;
}

.kyd-ani{
    position: absolute;
    width: 8rem;
    left: 50%;
    margin-left: -4rem;
    top: 50%;
    margin-top: -4rem;
}
/* 砍价成功 */
.success-page{
    width: 10rem;
    min-width: 320px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -5rem;
    margin-top: -5rem;
}

.avatar{
    width: 45px;
    height: 45px;
    border-radius: 50px;
    border: solid 2px #fff;
    margin-bottom: 20px;
    margin-left: 20px;
}
.dialog{
    top: 0;
    float: right;
    padding: 10px;
    background-color: #fff;
    display: inline-block;
    border-radius: 5px;
    margin-left: 5px;
    font-size: 14px;
    color: #333;
    position: absolute;
}
.dialog::after{
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px;
    border-left-color: transparent;
    border-top-color: transparent;
    border-right-color: #fff;
    border-bottom-color: transparent;
   position: absolute;
   left: -10px;
   transform: scaleX(1.5);
   top: 10px;
}
.success-page .content{
    margin-top: 0;
}

.show{
    display: block;
    animation:  scale-021 .5s ease-in-out;
}

@keyframes scale-021 {
    from{
        transform: scale(0);
    }
    to{
        transform: scale(1);
    }
}

.free-btn {
    border: none;
    width: 100%;
    height: 40px;
    color: rgb(229, 39, 39);
    font-size: 18px;
    font-weight: 800;
    background-color: rgb(255, 221, 0);
    border-radius: 40px;
    box-shadow: 0 5px rgb(240, 190, 0);
    margin: 20px auto;
}

.piece{
    color: red;
    font-weight: 800;
}